//
//  DateTools.h
//  HEClander
//
//  Created by User on 16/5/11.
//  Copyright © 2016年 User. All rights reserved.
//

#import <Foundation/Foundation.h>

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

@interface DateTools : NSObject
+ (NSInteger)getNumberOfDaysInMonthbydate:(NSDate *)date;

+ (NSDateComponents *) getDateInfobydate:(NSDate *)date;

+ (int)weekdayFromDate:(NSDate*)inputDate;

+ (NSMutableArray *)getYearAndMonth:(NSDate *)date;

+ (NSDate *) strToDate:(NSString *)Str;

+ (int)setdate:(NSDate *)date;

+ (NSMutableArray *)getDatesourcebyDate:(NSDate *)date;

+ (NSDate *)changeMonth:(NSDate *)date add:(int)MonthValue;

@end
